<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>百元买鸡</title>
     <script>
         var  x,y,z;
         for(x=0;x<=100;x++){
             for (y=0;y<=100;y++){
                 for(z=0;z<=100;z++){
                     if((parseInt(x)*5+parseInt(y)*3+parseInt(z)/3==100)&&(parseInt(x)+parseInt(y)+parseInt(z)==100)){
                         document.write("大公鸡有"+x+"只，老母鸡有"+y+"只，小鸡有"+z+"只")
                         document.write("<br>")
                     }
                 }
             }

         }
     </script>
</head>
<body>
</body>
</html>